<?php
$url = '?md=' . MvcReg::$_moduleName . '&cl=' . MvcReg::$_controllerName . '&at=' . str_replace('add', '', MvcReg::$_actionName) . 'update';

$id = $said = $account = $email = $name = $passowrd = $permission = '';
if (!empty($rsp_row)) {
    $row = $rsp_row;
    $id = $row["id"];
    $said = $row["said"];
    $account = ($row["account"]);
    $email = $row["email"];
    $name = ($row["name"]);
    $password = "*****";

}
?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <?php include_once MvcReg::$_moduleName . '/views/layout/head.php'; ?>
</head>

<body>
<?php include_once MvcReg::$_moduleName . '/views/layout/woody-prompt.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/layout/header.php'; ?>
<div id="main">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <?php include_once MvcReg::$_moduleName . '/views/layout/left_menu.php'; ?>
            </div>
            <div class="col-md-10">
                <div class="right-content">
                    <h3>
                        <ol class="breadcrumb"><li><a href="?md=manage&cl=goods&at=goodsWeight"><i class="fa fa-dashboard"></i><?php echo $menu["breadcrumb_current"]?></a><li class="active"><?php echo ((!empty($id) && ($id > 0)) > 0 ? '%{EDIT}%' : '%{ADD}%')?></li></li></ol>
                    </h3>
                    <br>
                    <form class="form-horizontal" action="<?php echo $url?>" method="post" autocomplete="off">
                        <input type="hidden" name="id" value="<?php echo $rsp_row['id']?>" class="form-control "/>
                        <div class="form-group">
                        <div class="form-group">
                            <label for="addtime" class="col-md-2 control-label">
                                <i>*</i>物料编码：
                            </label>
                            <div class="col-md-6">
                                <input type="text" name="goods[goods_num]" value="<?php echo $rsp_row['goods_num'];?>" class="form-control " placeholder="" required/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cname" class="col-md-2 control-label">
                                <i>*</i>产品名称：
                            </label>
                            <div class="col-md-6">
                                <input type="text" name="goods[goods_name]" value="<?php echo $rsp_row['goods_name'];?>" class="form-control" placeholder="" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cname" class="col-md-2 control-label">
                                <i>*</i>口味：
                            </label>
                            <div class="col-md-6">
                                <input type="text" name="goods[goods_model]" value="<?php echo $rsp_row['goods_model'];?>" class="form-control" placeholder="" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="cname" class="col-md-2 control-label">
                                <i>*</i>商品克重(含包材)：
                            </label>
                            <div class="col-md-6">
                                <input type="text" name="goods[goods_weight]" value="<?php echo $rsp_row['goods_weight'];?>" class="form-control" placeholder="" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="stacode" class="col-md-2 control-label">
                            </label>
                            <div class="col-md-4">
                                <button type="submit" class="btn btn-success">保存</button>
                            </div>
                            <span class="col-md-6"></span>
                        </div>
                        <input type="hidden" id="page" name="page" value="<?php echo $page?>"/>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php include_once MvcReg::$_moduleName . '/views/layout/footer.php'; ?>
</body>
</html>